package chixing.day18.synchronized_demo;

public class AccountThread extends Thread{
    private Account account;

    public AccountThread(Account account) {
        this.account = account;
    }

    @Override
    public void run() {
        account.depoist(1);
        account.withdraw(1);
    }
}
